import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author gao
 * @date 2025/9/1 9:59
 */

public class Solution {
    public List<Integer> sequentialDigits(int low, int high) {
        List<Integer> ret = new ArrayList<>();

        // 遍历所有可能的起始数字
        for (int start = 1; start <= 9; start++) {
            int num = start;
            int nextDigit = start + 1;

            // 构建顺次数
            while (nextDigit <= 9) {
                num = num * 10 + nextDigit;
                nextDigit++;

                // 检查是否在范围内
                if (num >= low && num <= high) {
                    ret.add(num);
                }
            }
        }
        ret.sort(null);
        return ret;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            int low = in.nextInt();
            int high = in.nextInt();

            Solution solution = new Solution();
            System.out.println(solution.sequentialDigits(low, high));
        }
    }
}